$(function(){
    var loginName=baseFunction.getUrlParameterValueByKey("loginName");
    init(loginName);
})
function init(loginName){
    var data={
        userName: baseFunction.encryption(loginName),
        queryType: "4411",
    }
    baseFunction.netRequest("param",data,function(res){
        
        if(res.code==200){
            var data = JSON.parse(JSON.parse(res.data).result);
            console.log(data);
            var name=data.wxAuth==1?data.trueName:"***"; //姓名
            var phone=data.wxAuth==1?data.loginName:"***********"; //电话
            var wx=data.wxAuth==1?data.wxno:"***"; //微信
            var wxImg=data.wxImg?imgHttp+ data.wxImg:"../static/img/qrcode_icon.jpg" //微信图片
            //dom
            $(".name").html(name);
            $(".phone").html(phone);
            $(".wx").html(wx);
            $(".wxQR").attr("src",wxImg);
        }
    })
}